package cn.lg.soar.core.propertie.security;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Lazy;

import java.time.Duration;

/**
 * @author luguoxiang
 * @date 2022/4/4
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Lazy
@ConfigurationProperties(value = "lg.security.access-token")
public class AccessTokenProperties {

    /**
     * 有效期
     */
    private Duration expire;

    /**
     * 密钥
     */
    private String secret;

    public Duration getExpire() {
        return expire;
    }

    public void setExpire(Duration expire) {
        this.expire = expire;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
